<?php

namespace App\Http\Requests\Api;

class VerifyRequest extends FormRequest
{
    public function rules()
    {
        switch ($this->method()) {
            case 'POST':
                $arr = [
                    'code' => 'required|string',
                    'dealer' => 'required|string',
                    'dealer_code' => 'required|string',
                    'org_id' => 'required|integer',
                ];
                return $arr;
                break;
        }
    }

    public function attributes()
    {
        return [
            'code' => '券码',
            'dealer' => '经销商',
            'dealer_code' => '经销商编号',
            'org_id' => '组织ID',
        ];
    }

}
